#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
    char a[100];
    int i,num[5],n,t;
    cin>>n;
    t=n;
    while (n--)
    {
        cin.getline(a,100);
        if (t==n+1)cin.getline(a,100);
        for (i=0;i<5;i++)num[i]=0;
        for (i=0;i<strlen(a);i++)
        {
            if (a[i]=='a')num[0]++;
            if (a[i]=='e')num[1]++;
            if (a[i]=='i')num[2]++;
            if (a[i]=='o')num[3]++;
            if (a[i]=='u')num[4]++;
        }
        cout<<"a:"<<num[0]<<endl<<"e:"<<num[1]<<endl<<"i:"<<num[2]<<endl<<"o:"<<num

[3]<<endl<<"u:"<<num[4]<<endl;
        if (n!=0)cout<<endl;
    }
    return 0;
}